package com.example.demo.control;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by Administrator on 2017-6-9.
 */
@Controller
@RequestMapping
public class PublicControl {

    Logger logger = LoggerFactory.getLogger(PublicControl.class);

    @RequestMapping("/tologin")
    public String to(HttpServletRequest request, String gitname, String gitpwd, String jenkinname, String jenkinspwd) {


        logger.info("to login");
        return "login";
    }


}
